//
//  InsDetail1TableViewCell.m
//  grainHouse
//
//  Created by zzxcc on 14/10/20.
//  Copyright (c) 2014年 zzxcc. All rights reserved.
//

#import "InsDetail1TableViewCell.h"

@implementation InsDetail1TableViewCell

- (void)awakeFromNib {
    // Initialization code
}

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.userImage = [[UIImageView alloc] initWithFrame:CGRectMake(20, 10, 50, 50)];
        _userImage.backgroundColor = [UIColor redColor];
        _userImage.layer.cornerRadius = 25;
        _userImage.layer.masksToBounds = YES;
        [self.contentView addSubview:_userImage];
        [_userImage release];
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(80, 20, 60, 30)];
        //_nameLabel.text = @"名字";
        [self.contentView addSubview:_nameLabel];
        [_nameLabel release];
        
        
        self.follow = [UIButton buttonWithType:UIButtonTypeCustom];
        _follow.frame = CGRectMake(230, 20, 80, 30);
        _follow.layer.cornerRadius = 5;
        _follow.backgroundColor = [UIColor redColor];
        _follow.layer.borderColor = [UIColor blueColor].CGColor;
        [_follow setTitle:@"加关注" forState:UIControlStateNormal];
        [self.contentView addSubview:_follow];
        
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
